package com.sofwin.system.service;

import com.github.pagehelper.PageInfo;
import com.sofwin.pojo.SysUser;
import com.sofwin.vo.UserVO;

/**
 * @packageName: com.sofwin.system.service
 * @user: andyliu
 * @date: 2021/12/14 10:57
 * @email 115176513@qq.com
 * @description: TODO
 */

public interface UserService {
    /**
     *
     * @param user
     * @return  null 登录失败，否则登录成功
     */
    SysUser checkLogin(SysUser user);

    PageInfo<UserVO> selectByPage(SysUser user, Integer pageNumber, Integer pageSize);

    SysUser selectById(Integer id);

    boolean saveOrUpdate(SysUser user);

    boolean deleteById(Integer id);

    boolean deleteByIds(Integer[] ids);
}
